<template>
    <view>
        <component v-bind:is="paramsCustom.customModule"></component>
    </view>
</template>

<script>
import components from "./index.js"
export default {
    name: "customPage",
    mixins: [components],
    data(){
        return{
            paramsCustom:{}
        }
    },
    onLoad(option){
        let params = JSON.parse(option.params)
        this.paramsCustom = params;
        if(params.title){
            //获取自定义页面标题替换
            uni.setNavigationBarTitle({
                title: params.title
            });
        }
    },
    methods:{

    }
}
</script>

<style scoped>

</style>
